package com.yswy.domain.vo.gld.addOrUpate;

import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Api(tags = "添加更新包")
@Data
public class PackageVersionAddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;

    @ApiModelProperty("项目ID")
    @NotNull(message = "项目ID不能为空", groups = {CREATE.class})
    private Long projectId;

    @ApiModelProperty("包链接")
    private String fileUrl;

    @ApiModelProperty("包文件 文件")
    private MultipartFile packagefileUrl;

    @ApiModelProperty("版本号")
    @NotEmpty(message = "版本号 不能为空", groups = {CREATE.class})
    private String versionCode;

    @ApiModelProperty("是否发布")
    @NotNull(message = "是否发布 不能为空", groups = {CREATE.class})
    private Integer isRelease;

    @ApiModelProperty("是否强制更新")
    @NotNull(message = "是否强制更新 不能为空", groups = {CREATE.class})
    private Integer isForce;

    @ApiModelProperty("系统平台")
    @NotEmpty(message = "系统平台 不能为空", groups = {CREATE.class})
    private String xtPlatform;

    @ApiModelProperty("备注")
    private String  appendInformation ;

    @ApiModelProperty("更新公告")
    @NotEmpty(message = "更新公告 不能为空", groups = {CREATE.class})
    private String  notice ;
}
